package nuig.prolog.userTypingFormat.impl;

import java.util.List;

import nuig.prolog.entity.WordEntity;
import nuig.prolog.userTypingFormat.Rule;

/**
 * rule contain class contain all the rules and it canbe runed
 * 
 * @author huangyuan
 * 
 */
public class RuleContain extends Rule {

	/**
	 * do the chain to process the list
	 * 
	 * @return
	 * @throws Exception
	 */
	public RuleContain DoRule() throws Exception {
		// here is the function to process all the filter
		Rule[] rules = { new SentenceRule(),new NormalQuestionRule(),new NormalSentenceRule() 
		,new CompareQuestionRule(),new CompareSentenceRule()
		,new WhoQuestionRule()
		};

		for (Rule rule : rules) {
			rule.DoRule();
		}

		// here is the code to analize

		return this;
	}

}
